import React, { Component } from 'react'
import {observer,inject} from 'mobx-react'

@inject("todo")
@observer
class Index extends Component {
    render() {
        return (
            <div>
                <h1>{this.props.todo.id}</h1>
                <h1>{this.props.todo.title}</h1>
                <button onClick={this.props.todo.cTitle}>点击改变！！！</button>
            </div>
        )
    }
}export default Index
